package com.ndp.fb.walle.permission.validation;

import com.alibaba.dubbo.config.annotation.Reference;
import com.ndp.fb.rdb.api.DataPermissionRdbService;
import org.springframework.stereotype.Component;

/**
 * Created by yeahmobi on 2015/6/9.
 */
@Component
public class AdPublishConditionControllerValidation {

    @Reference
    private DataPermissionRdbService dataPermissionRdbService;

    //已经根据usertoken 进行过滤
    public boolean search(String usertoken,Object [] args){
        return  true;
    }

    //该数据权限由系统权限控制
    public boolean loadDetail(String usertoken,Object [] args){
       return  true;

    }

    //save 方法不做检查
    public boolean save(String usertoken,Object [] args){
        return  true;
    }

    //该数据权限由系统权限控制
    public boolean updateStatus(String usertoken,Object [] args){
        return  true;

    }

    //查询中已经根据 usertoken 进行查询
    public boolean getAccounts(String usertoken,Object [] args){
        return  true;
    }
}
